package com.woniu.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author huangjianbin
 * @since 2023-02-04 04:10:53
 */
@Getter
@Setter
@TableName("t_order")
public class Order {

    @TableId("id")
    private Integer id;

    /**
     * 订单号
     */
    @TableField("order_num")
    private Integer orderNum;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 地址id
     */
    @TableField("address_id")
    private Integer addressId;

    /**
     * 状态(1未支付，2已支付,3已取消)
     */
    @TableField("status")
    private Integer status;

    /**
     * 总金额
     */
    @TableField("total_price")
    private BigDecimal totalPrice;


}
